﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using WhereIsMyCash.IDAL;
using WhereIsMyCash.DALFactory;
using WhereIsMyCash.Entity;
using WhereIsMyCash.Enums;

namespace WhereIsMyCash.BLL
{
    public class Account
    {
        /// <summary>
        /// 创建数据库访问类实现
        /// </summary>
        static readonly IAccount dal = DALProvider.CreateAccount();

        /// <summary>
        /// 是否存在
        /// </summary>
        /// <param name="account">帐户实体</param>
        /// <param name="checkType">检测类型枚举</param>
        /// <returns></returns>
        public static bool IsExist(AccountInfo account, EnumExsistingCheckType checkType)
        {
            return dal.IsExist(account, checkType);
        }
    }
}
